package com.itheima.reggie.service;


import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;
import com.itheima.reggie.pojo.Page;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


public interface DishService {
    Page<DishDto> findByPage(Integer pageNum, Integer pageSize,String name);

    @Transactional
    void saveWithFlavor(DishDto dishDto);

    DishDto findById(Long id);

    void updateWithFlavor(DishDto dishDto);

    int deleteByIds(Long ids[]);

    Integer updateStatus(Integer status,Long[] ids);

    List<DishDto> findByCategoryId(Long categoryId,String name,Integer status);



}
